let obj1 = { name1: "张三", "name2": "李四" };
let obj2 = { "name1": "张三", "name2": "李四" };
console.log(obj1[name1])  //name1 is not defined
console.log(obj2[name1])  //name1 is not defined
console.log(obj1.name1)  //张三

let arr2 = { 1: 3, 3: 5 }
console.log(arr2[1])   //3
console.log(arr2['1']) //3